package com.zxt.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class IndexController {
    @RequestMapping("/test")
    @ResponseBody
    public String test(){
        return "这是一段测试数据！";
    }

    @RequestMapping("/index")
    public String toIndex(){
        return "index";
    }
}
